#ifndef MASOCKETCLIENT_H
#define MASOCKETCLIENT_H

#include <QtGui>
#include <QtNetwork>

#include "Proto.h"
#include "MaSocket.h"
#include "Client.h"

class Client;

class MaSocketClient : public MaSocket
{
    Q_OBJECT

public:
    MaSocketClient(QTcpSocket *socket, Client *parent);

signals:
    void connexionAcceptee();
    void connexionRefusee(QString message);
    void recevoirEnvoyerATous(QString message);

protected:
    void traitementMessage(quint8 typeApplication, quint8 typeMessage, QByteArray contenu);

};

#endif // MASOCKETCLIENT_H
